import React from 'react';
import { IndexRoute, Route } from 'react-router';
import ViewerQuery from "../../routes/ViewerQuery";
import Container from '../DumbContainer';
import WtpListContainer from './WtpListComponent';

const defaultPrepareParams = (params, { location }) => {
  return ({ ...params, ...location.query });
};

const router = (
  <Route path='/wtp' queries={ViewerQuery} component={Container}>
    <IndexRoute component={WtpListContainer} queries={ViewerQuery}/>

  </Route>
);

export default router;
